package com.zmht.specedu.vo;

import java.util.HashSet;
import java.util.Set;

/**
 * Student entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Student implements java.io.Serializable {

    // Fields

    private Integer studentId;
    private Bjclass bjclass;
    private String sname;
    private String sex;
    private String sbirthday;
    private String sage;
    private String classNumber;
    private String joinSchool;
    private Integer leftEar;
    private Integer rightEar;
    private String listen;
    private String language;
    private String study;
    private String geleifisi;
    private String nurse;
    private String relation;
    private String phone;
    private Integer anzhiState;
    private String remark;
    private String addTime;
    private Integer classID;
    private Set studentplans = new HashSet(0);
    private Set studevalutes = new HashSet(0);
    private Set<Dxclass> dxclass = new HashSet<Dxclass>(0);

    private Set studpinggus = new HashSet(0);

    private String classNameStr = "";
    private Anzhi anzhi;
    private Helplisten helplistenL;
    private Helplisten helplistenR;

    // Constructors

    /** ��ʾ��ѵ�༶��� */
    public String getClassNameStr() {
    classNameStr = "<b>单训组：</b>";
	return classNameStr+getDxClassNames();
    }
    public String getDxClassNames(){
	String result = "";
	int i=0;
	for (Dxclass t : dxclass) {
	    if(i++ >0){
		result +=  "，"+t.getName();
	    }else{
		result += t.getName();
	    }
	}
	return result;
    }
    public void setClassNameStr(String classNameStr) {
	this.classNameStr = classNameStr;
    }

    public String getBigNames() {
    	if(getBjclass()!=null){
    		System.out.println("<b>集体班：</b>"+getBjclass().getGradeAndClassNumber() + "<br>" + getClassNameStr());
    	    return "<b>集体班：</b>"+getBjclass().getGradeAndClassNumber() + "<br>" + getClassNameStr();
    	}else{
    	    return "<b>集体班：</b><br>" + getClassNameStr();
    	}
    }

    /** default constructor */
    public Student() {
    }

    public Student(Integer id, String name) {
	this.studentId = id;
	this.sname = name;
    }


    // Property accessors

    public Integer getStudentId() {
	return this.studentId;
    }

    public void setStudentId(Integer studentId) {
	this.studentId = studentId;
    }

    public Bjclass getBjclass() {
	return this.bjclass;
    }

    public void setBjclass(Bjclass bjclass) {
	this.bjclass = bjclass;
    }

    public String getSname() {
	return this.sname;
    }

    public void setSname(String sname) {
	this.sname = sname;
    }

    public String getSex() {
	return this.sex;
    }

    public void setSex(String sex) {
	this.sex = sex;
    }

    public String getSbirthday() {
	return this.sbirthday;
    }

    public void setSbirthday(String sbirthday) {
	this.sbirthday = sbirthday;
    }

    public String getSage() {
	return this.sage;
    }

    public void setSage(String sage) {
	this.sage = sage;
    }

    public String getClassNumber() {
	return this.classNumber;
    }

    public void setClassNumber(String classNumber) {
	this.classNumber = classNumber;
    }

    public String getJoinSchool() {
	return this.joinSchool;
    }

    public void setJoinSchool(String joinSchool) {
	this.joinSchool = joinSchool;
    }

    public Integer getLeftEar() {
	return this.leftEar;
    }

    public void setLeftEar(Integer leftEar) {
	this.leftEar = leftEar;
    }

    public Integer getRightEar() {
	return this.rightEar;
    }

    public void setRightEar(Integer rightEar) {
	this.rightEar = rightEar;
    }

    public String getListen() {
	return this.listen;
    }

    public void setListen(String listen) {
	this.listen = listen;
    }

    public String getLanguage() {
	return this.language;
    }

    public void setLanguage(String language) {
	this.language = language;
    }

    public String getStudy() {
	return this.study;
    }

    public void setStudy(String study) {
	this.study = study;
    }

    public String getGeleifisi() {
	return this.geleifisi;
    }

    public void setGeleifisi(String geleifisi) {
	this.geleifisi = geleifisi;
    }

    public String getNurse() {
	return this.nurse;
    }

    public void setNurse(String nurse) {
	this.nurse = nurse;
    }

    public String getRelation() {
	return this.relation;
    }

    public void setRelation(String relation) {
	this.relation = relation;
    }

    public String getPhone() {
	return this.phone;
    }

    public void setPhone(String phone) {
	this.phone = phone;
    }

    public Integer getAnzhiState() {
	return this.anzhiState;
    }

    public void setAnzhiState(Integer anzhiState) {
	this.anzhiState = anzhiState;
    }

    public String getRemark() {
	return this.remark;
    }

    public void setRemark(String remark) {
	this.remark = remark;
    }

    public Integer getClassID() {
	return this.classID;
    }

    public void setClassID(Integer classID) {
	this.classID = classID;
    }

    public Set getStudentplans() {
	return this.studentplans;
    }

    public void setStudentplans(Set studentplans) {
	this.studentplans = studentplans;
    }

    public Set getStudevalutes() {
	return this.studevalutes;
    }

    public void setStudevalutes(Set studevalutes) {
	this.studevalutes = studevalutes;
    }

    public Set getDxclass() {
	return dxclass;
    }

    public void setDxclass(Set dxclass) {
	this.dxclass = dxclass;
    }

    public Set getStudpinggus() {
	return this.studpinggus;
    }

    public void setStudpinggus(Set studpinggus) {
	this.studpinggus = studpinggus;
    }

    public String getAddTime() {
	return addTime;
    }

    public void setAddTime(String addTime) {
	this.addTime = addTime;
    }

    public Anzhi getAnzhi() {
	return anzhi;
    }

    public void setAnzhi(Anzhi anzhi) {
	this.anzhi = anzhi;
    }

    public Helplisten getHelplistenL() {
	return helplistenL;
    }

    public void setHelplistenL(Helplisten helplistenL) {
	this.helplistenL = helplistenL;
    }

    public Helplisten getHelplistenR() {
	return helplistenR;
    }

    public void setHelplistenR(Helplisten helplistenR) {
	this.helplistenR = helplistenR;
    }

}